class Queue1:
  def __init__(self):
    self.q = []

  def enqueue(self, item):
    return self.q.append(item)

  def dequeue(self):
    return self.q.pop(0)

  def isEmpty(self):
    return len(self.q) == 0

# If running as standalone file.
if __name__ == "__main__":
  q = Queue1()
  q.enqueue("apple")
  q.enqueue("banana")
  #...
  while not q.isEmpty():
    print q.dequeue()

  print "Done!"
